package ch01.graphics;

import javax.swing.JOptionPane;

public class InputDialogViewer {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		//Ask for name
		String name = JOptionPane.showInputDialog("What is your name?");
		
		//Print name
		JOptionPane.showMessageDialog(null, "Hello " + name);
		
		//Exit
		System.exit(0);
	}

}
